package com.message.tcp.ip.ui.member;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;

import com.message.tcp.ip.ui.member.dialog.MemberTable;

public class MemberPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel memberLabel;
	private JTextField memberText;
	private JScrollPane memberScrollPane;
	private JButton searchButton;
	private JButton updateButton;
	private JButton deleteButton;
	public MemberPanel(MemberTable memberTable) {
		this.setLayout(new BorderLayout(0, 0));
		JPanel memberPane = new JPanel(new FlowLayout());
		this.add(memberPane, BorderLayout.NORTH);
		memberLabel = new JLabel("Member ID");
		searchButton = new JButton("Search");
		updateButton = new JButton("Update");
		deleteButton = new JButton("Delete");
		memberPane.add(memberLabel);
		memberText = new JTextField();
		memberText.setColumns(10);
		
		memberPane.add(memberText);
		memberPane.add(searchButton);
		memberPane.add(updateButton);
		memberPane.add(deleteButton);
		
		memberScrollPane = new JScrollPane(memberTable);
		memberScrollPane.setPreferredSize(new Dimension(250, 270));
		this.add(memberScrollPane, BorderLayout.CENTER);
	}
}